package BigDemo.SmallDemo;

public class Test {
    public static void main(String[] args) {
        Dog d=new Dog();
        d.setName("小白");
        d.setAge(2);
        System.out.println(d.getName()+" "+d.getAge());
        d.drink();
        d.eat();
        Frog f=new Frog();
        f.setName("蛙蛙");
        f.setAge(2);
        System.out.println(f.getName()+" "+f.getAge());
        f.drink();
        f.eat();
        Sheep s=new Sheep();
        s.setName("羊羊");
        s.setAge(3);
        System.out.println(s.getName()+" "+s.getAge());
        s.drink();
        s.eat();
    }
}
